<h3>Gerenciar Alunos</h3>

<p class="adicionar"><?php echo $html->link('Adicionar novo Aluno', array('action' => 'add')); ?></p>
<table border="1" cellspacing="0" cellpadding="0">
	<tr>
		<th>Nome Completo</th>
		<th>Número da Matrícula</th>
		<th class="editar">Editar</th>
		<th class="excluir">Excluir</th>

	</tr>

	<?php foreach ($students as $s): ?>
	<tr>
		<td><?php echo $s['Student']['nome']; ?></td>
		<td><?php echo $s['Student']['numero_matricula']; ?></td>
		<td>
			<?php echo $html->link('Editar', '/students/edit/'.$s['Student']['numero_matricula'] );?>
		</td>
		<td>
			<?php echo $html->link('Excluir',  "/students/delete/{$s['Student']['numero_matricula']}", null, 'Deseja realmente excluir?' )?>
		</td>
	</tr>
	<?php endforeach; ?> 
</table>
